import json
from flask import Flask

app = Flask(__name__)


@app.route('/home')
def home():
    return "欢迎使用"


@app.route('/home/info')
def play():
    info = {"code": 1000, 'data': [11, 22, 33]}
    data_string = json.dumps(info)
    return data_string


if __name__ == '__main__':
    app.run()